﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace SimpleScrum.Core.Entities
{
    public class Organization
    {
        [Display(Name = "Organization ID")]
        public virtual Guid Id { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Name")]
        [StringLength(50, ErrorMessage = "The Organization name must be at most 50 characters long")]
        public virtual string Name { get; set; }

        [Required]
        [DataType(DataType.MultilineText)]
        [Display(Name = "Description")]
        [StringLength(500, ErrorMessage = "The Organization description must be at most 250 characters long")]
        public virtual string Description { get; set; }

        [Required]
        [Display(Name = "User")]
        public virtual Users Users { get; set; }

        public virtual IList<Project> Projects { get; set; }
        public virtual List<Project> ProjectCollection { get; set; }
    }
}